import Layout from '@/layout/index'

const router = [
  {
    path: '/salesOrder',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'form',
        name: 'SalesOrderInsert',
        component: () => import('@/views/order/salesOrder/SalesOrderForm'),
        meta: { title: '销售订单-新增' },
        noCache: true,
        hidden: true
      },
      {
        path: 'salesOrderItemReturnList/:custSalesOrderItemNo',
        name: 'SalesOrderItemReturnList',
        component: () => import('@/views/order/salesOrder/SalesOrderItemReturnList'),
        meta: { title: '原始订单查看' },
        noCache: true,
        hidden: true
      },
      {
        path: 'form/:id(\\d+)',
        name: 'SalesOrderUpdate',
        component: () => import('@/views/order/salesOrder/SalesOrderForm'),
        meta: { title: '销售订单-编辑' },
        noCache: true,
        hidden: true
      },
      {
        path: 'audit',
        name: 'SalesOrderAudit',
        component: () => import('@/views/order/salesOrder/SalesOrderAudit'),
        meta: { title: '销售订单-审核' },
        noCache: true,
        hidden: true
      },
      {
        path: 'orderDetail/:salesOrderId',
        name: 'SalesOrderDetailView',
        component: () => import('@/views/user/components/order-detail'),
        meta: { title: '销售订单-查看' },
        noCache: true,
        hidden: true
      },
      {
        path: 'view/:salesOrderNo',
        name: 'SalesOrderView',
        component: () => import('@/views/order/salesOrder/SalesOrderView'),
        meta: { title: '销售订单-查看' },
        noCache: true,
        hidden: true
      }
    ]
    },
    {
        path: '/finCustomerCreditApplication',
      component: Layout,
      hidden: true,
      children: [
        {
          path: 'finCustomerCreditApplicationView/:id',
          name: 'FinCustomerCreditApplicationView',
          component: () => import('@/views/baoli/finCustomerCreditApplication/FinCustomerCreditApplicationView'),
          meta: { title: '信用申请单-查看' },
          noCache: true,
          hidden: true
        }
      ]
    },
    {
        path: '/purchaseOrder',
      component: Layout,
      hidden: true,
      children: [
        {
          path: 'purchaseOrderView/:id',
          name: 'PurchaseOrderView',
          component: () => import('@/views/tms/tPoPurchaseOrder/PurchaseOrderView'),
          meta: { title: '发货计划-查看详细' },
          noCache: true,
          hidden: true
        }
      ]
    },
    {
      path: '/finCreditBill',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'finCreditBillView/:id',
        name: 'FinCreditBillView',
        component: () => import('@/views/baoli/finCreditBill/FinCreditBillView'),
        meta: { title: '信用申请单-查看' },
        noCache: true,
        hidden: true
      },
      {
        path: 'finCreditBillAtOrderImport/:salesId',
        name: 'FinCreditBillImportView',
        component: () => import('@/views/baoli/finCreditBill/FinCreditBillAtOrderImport'),
        meta: { title: '信用申请单-新建' },
        noCache: true,
        hidden: true
      }
    ]
  }
]
 export default router
